package Ex1;

import java.util.Scanner;

public class Ex03_Q1 {
	
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		int money2;
		int money;
		int married;
		System.out.println("결혼여부 입력 : 1.혼인 2.미혼");
		married=scan.nextInt();
				
		if(married==1){
			System.out.println("연봉을 입력하시오.");
			money=scan.nextInt();
				if(money>=6000)
					System.out.println(money*0.75+"만원 입니다.");
				else 
					System.out.println(money*0.9+"만원 입니다.");
				
	} else if(married==2){
			System.out.println("연봉을 입력하시오.");
			money=scan.nextInt();
				if(money>=3000)
			System.out.println(money*0.75+"만원 입니다.");
				else
					System.out.println(money*0.9+"만원 입니다.");
		}
				
	}
		
}